From fd0b7caa7c426b17256b0700011779b7f524f14c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 6 Dec 2017 17:24:58 +0100 Subject: [PATCH] gl renderer: Fix shadow shader We need to take the alpha of the shadow color into account as well. --- gsk/resources/glsl/shadow.fs.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsk/resources/glsl/shadow.fs.glsl b/gsk/resources/glsl/shadow.fs.glsl index 3426ba35fc..f3535f1361 100644 --- a/gsk/resources/glsl/shadow.fs.glsl +++ b/gsk/resources/glsl/shadow.fs.glsl @@ -7,7 +7,7 @@ void main() { // pre-multiply color.rgb *= color.a; - color = vec4(u_color.rgb * diffuse.a, diffuse.a); + color = vec4(u_color.rgb * diffuse.a, diffuse.a * color.a); setOutputColor(color); } -- 2.30.2